<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php if(!empty($_SESSION['user'])): ?>欢迎:<?php echo ($_SESSION['user']['username']); ?>
    <a href="<?php echo U('User/person');?>">个人中心</a>
    <a href="<?php echo U('User/logout');?>">退出</a>
    <?php else: ?>
    <a href="<?php echo U('User/register');?>">注册</a>
    <a href="<?php echo U('User/login');?>">登陆</a><?php endif; ?>
</body>
</html>